package com.sikaryofficial.system.api.model.outer;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.sikaryofficial.system.api.model.FileInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "上传支付凭证请求")
public class UploadPaymentVoucherReq {

    /**
     * 订单付款id
     */
    @ApiModelProperty(value = "订单付款id")
    @NotNull(message = "订单付款id不能为空")
    private Long payInfoId;

    @ApiModelProperty(value = "支付凭证文件")
    @NotEmpty(message = "支付凭证文件不能为空")
    @JsonProperty("attachmentList")
    private List<FileInfo> paymentVoucherFiles;
}
